/**
 * @author Pieter Michels / wellconsidered
 * pieter@wellconsidered.be
 *
 * Open source under the GNU Lesser General Public License (http://www.opensource.org/licenses/lgpl-license.php)
 * Copyright © 2009 Pieter Michels / wellconsidered
 * 
 * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License 
 * as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License along with this library; 
 * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 */
 
package be.wellconsidered.apis.lighthouse.resources.events
{
	import flash.events.Event;

	public class ProjectEvents extends Event
	{
		public static var LIST_COMPLETE:String = "ListComplete";
		public static var GET_COMPLETE:String = "GetComplete";
		public static var NEW_COMPLETE:String = "NewComplete";
		public static var CREATE_COMPLETE:String = "CreateComplete";
		public static var UPDATE_COMPLETE:String = "UpdateComplete";
		public static var DELETE_COMPLETE:String = "DeleteComplete";
		
		private var _data:*;
		
		public function ProjectEvents(type:String, bubbles:Boolean=false, cancelable:Boolean=false, data:*=null)
		{
			super(type, bubbles, cancelable);
			
			_data = data;
		}
		
		public function get data():*
		{
			return _data;
		}
	}
}